const WxStore = require('./service/wx_store.js');
const state = {test: 0};
const getters = {};
const mutations = {};
// app.js
const app = App;
app({
  onLaunch: function() {
    if (!wx.cloud) {
      console.error('请使用 2.2.3 或以上的基础库以使用云能力');
    } else {
      wx.cloud.init({
        traceUser: true,
      });
    }
  },
  globalData: {
    wx_store: new WxStore({state, getters, mutations}),
  },
});
